﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IOBusiness.LinqDB;

namespace IOBusiness.ClassLinq
{
   public class clsLqHome
    {
        SapaDBDataContext objDBData = new SapaDBDataContext();
        public tblAboutUS Home_getTop1AboutUs(int id)
        {
            try
            {
                var select = from t in objDBData.tblAboutUS
                            where t.ID.Equals(id)
                            select t;
                if (select.Count()>0)
                {
                    return select.First();
                }
                else
                {
                    return null;
                }
                

            }
            catch (Exception)
            {
                
                throw;
            }
            
        }
    }
}
